import service from '@/utils/request'
// const { httpPostForm, httpPost, httpGet } = service
const {  httpGet, httpPost } = service
const request = {

    //根据物资类别父级id获取子级物资类别集合
    materialCategoryLibraryQueryListByParentClassId (id, materialType = 1) {
        return httpGet({
            url: '/material/categoryLibrary/queryListByParentClassId',
            params: {
                id,
                materialType
            }
        })
    },
    //根据实体属性分页查询物资基础库
    getBaseLibraryListByEntity (params) {
        return httpPost({
            url: '/material/baseLibrary/listByEntity',
            params
        })
    },
}
export default request
